package tk.mybatis.springboot.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import tk.mybatis.springboot.model.CountermanInfo;
import tk.mybatis.springboot.model.TUser;
import tk.mybatis.springboot.share.MyMapper;

public interface UserMapper extends MyMapper<TUser>{
	public TUser getUserInfoByOpenId(@Param("openId")String openId);
	
	public List<TUser> getFollows(@Param("userId")String userId);
	
	public int addUserFollows(@Param("userId")String userId);
	
	public int minusUserFollows(@Param("userId")String userId);
	
	public int setUserAddress(@Param("userId")String userId, @Param("latitude")String latitude, @Param("longitude")String longitude);

	public List<TUser> getCounterman();
	
	public CountermanInfo findCountermanInfo(@Param("countermanId")String countermanId);
}
